package cn.com.nes.mybatis.agent.crm.mapper;

import cn.com.nes.mybatis.agent.crm.entity.OpportunityFile;
import cn.com.nes.site.service.crm.opportunity.bo.OpportunityFileBO;
import cn.com.nes.site.service.crm.opportunity.dto.OpportunityFileDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OpportunityFileMapper extends BaseMapper<OpportunityFile> {

    List<OpportunityFileDto> getOpportunityFileDtoList(@Param("page") Page<OpportunityFileDto> page, @Param("bo") OpportunityFileBO opportunityFileBo);

    List<OpportunityFileDto> getFileListByOpportunityId(@Param("opportunityUuid") String opportunityUuid, @Param("opportunityFileTypeList") List<String> opportunityFileTypeList);
}